From: Adel Gadllah Date: Wed, 23 Feb 2011 13:34:37 +0000 (+0100) Subject: dateMenu: Make sure that the event list fills the available width X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8892 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=fbf7528728c6bf094a39059f3e2b7d868bcffb66;p=gnome-shell.git dateMenu: Make sure that the event list fills the available width Currently the menu has a hardcoded width which result into the hover effect of the "Open Calendar" item being "cut off" in the middle rather then reaching to the edge. To be consistent with other menu items, make it expand to fill the available space. --- diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js index 9f6fb27d7..1f193aa7c 100644 --- a/js/ui/dateMenu.js +++ b/js/ui/dateMenu.js @@ -104,10 +104,10 @@ DateMenuButton.prototype = { // Fill up the second column vbox = new St.BoxLayout({vertical: true}); - hbox.add(vbox); + hbox.add(vbox, { expand: true }); // Event list - vbox.add(this._eventList.actor); + vbox.add(this._eventList.actor, { expand: true }); item = new PopupMenu.PopupMenuItem(_("Open Calendar")); item.connect('activate', Lang.bind(this, this._onOpenCalendarActivate));